package com.wxapp.market.api.feign;

import com.wxapp.common.constant.pojo.vm.ResultVm;
import com.wxapp.market.api.feign.fallback.GoodsFallBack;
import com.wxapp.market.api.pojo.vm.coupon.PCouponPageVm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author lgl
 * @Description 优化券
 * @Datetime 2023/2/6 10:55
 * @Modified By
 */
@FeignClient(value = "wxapp-sale", fallback = GoodsFallBack.class)
public interface GoodsFeign {
    @PostMapping("/goods/list")
    ResultVm<List<PCouponPageVm>> list(@RequestBody List<String> ids);
}
